﻿function checkEmail()
{
    var emailValue = document.getElementById_r("email").value;
    if (!isEmail(emailValue))
    {
        alert("您输入的邮箱有误,请重新核对后再输入!");
        document.getElementById_r("email").focus();
        return false;
    }
    return true;
}

function isEmail(str)
{
    var reg = /^(\w)+(\.\w+)*@(\w)+((\.\w+)+)$/;
    return reg.test(str);
}


